<style>
* {
  box-sizing: border-box;
  font-family: 'Trebuchet MS', Arial, sans-serif;
}

/* ============================= */
/* CONFIG (adjust if needed)     */
/* ============================= */
:root {
  --header-height: 60px;
  --bottom-nav-height: 60px;
}

/* ============================= */
/* SEARCH BAR                    */
/* ============================= */
.search-and-switch {
	margin: 5px;
}

.search-box {
	max-width: 1024px;
	margin: auto;
	display: flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 28px;
	background-color: #56585a;
}

.search-input::placeholder,
.search-icon {
	color: #b0b0b1;
	font-weight: bold;
}

.search-input {
	flex: 1;
	margin-left: 10px;
	background: transparent;
	border: none;
	outline: none;
	color: #b0b0b1;
	font-size: 14px;
}

/* ============================= */
/* PROVIDER BUTTON               */
/* ============================= */
.switch-provider-drop-button {
	background: transparent;
	border: none;
	color: #b0b0b1;
	font-size: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	padding-top: 4px;
}

/* ============================= */
/* BACKDROP                      */
/* ============================= */
.provider-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 9999;
	display: none;
}

/* visible state */
.provider-overlay.show {
	display: block;
}

/* ============================= */
/* BOTTOM SHEET PANEL            */
/* ============================= */
.provider-overlay-header,
.provider-list {
	position: absolute;
	left: 0;
	right: 0;
	background: #ffffff;
}

/* Panel positioning */
.provider-overlay-header {
	top: var(--header-height);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 8px;
	font-size: 16px;
	font-weight: bold;
	border: 2px solid #5d5d5c;
	border-radius: 16px 16px 0px 0px;
	background-color: #9fa1a4;
    color: #545352;
	margin: 0px 8px;
}

/* Scrollable content */
.provider-list {
	top: calc(var(--header-height) + 43px);
	/* bottom: var(--bottom-nav-height); */
	padding: 0px;
	overflow-y: auto;
	margin: 0px 8px;
	background-color: #5d5d5c;
	border-left: 2px solid #5d5d5c;
	border-right: 2px solid #5d5d5c;
	border-bottom: 2px solid #5d5d5c;
	border-radius: 0px 0px 16px 16px;
}

/* ============================= */
/* SLIDE UP ANIMATION            */
/* ============================= */
.provider-overlay.show .provider-overlay-header,
.provider-overlay.show .provider-list {
	animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
	from {
		transform: translateY(100%);
	}
	to {
		transform: translateY(0);
	}
}

/* ============================= */
/* CLOSE BUTTON                  */
/* ============================= */
.close-btn {
	background: #5d5d5c;
	border: none;
	font-size: 15px;
    cursor: pointer;
    border-radius: 50%;
    color: #9fa1a4;
}

/* ============================= */
/* PROVIDER ITEMS                */
/* ============================= */
.provider-list button {
    width: 100%;
    padding: 10px 14px;
    /* margin-bottom: 10px; */
    font-size: 12px;
    border-bottom: 3px solid #ddd;
    cursor: pointer;
    /* border-radius: 6px; */
    background-color: transparent;
    border: none;
    text-align: left;
    color: #d7d4d4;
}

.provider-list button:hover {
    background: #4d4d4c;
    color: #d7d4d4;
}

@media (min-width: 1024px) {
  .provider-list {
    scrollbar-width: none;
  }

  .provider-list::-webkit-scrollbar {
    width: 0px;
    background: transparent;
  }
}

@media (min-width: 513px) {
  /* For larger screens (desktops), adjust to 4 columns */
	  .provider-overlay-header {
		margin: auto;
		max-width: 512px;
	}

/* Scrollable content */
	.provider-list {
		margin: auto;
		max-width: 512px;
	}
}

</style>
